package com.ustc.hewei.rpc.common.protocol;

import java.io.Serializable;

/**
 * @author hewei
 * @version 1.0
 * @description: 对于响应类型中的状态枚举类
 * @date 2022/7/25 20:40
 */

public enum Status implements Serializable {
    ERROR(500, "error"),
    SUCCESS(200, "success"),
    NOT_FOUND(404, "not found"),
    KEEP_ALIVE(1, "keep alive");
    private int code;
    private String msg;

    Status(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
